package cn.exrick.xboot.modules.content.service;

import cn.exrick.xboot.base.XbootBaseService;
import cn.exrick.xboot.common.vo.SearchVo;
import cn.exrick.xboot.modules.base.entity.RoleDepartment;
import cn.exrick.xboot.modules.content.entity.HontRoleDepartment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


/**
 * 岗位接口
 * @author hml
 */
public interface HontRoleDepartmentService extends XbootBaseService<HontRoleDepartment, String> {

    /**
     * 通过roleId获取
     * @param roleId
     * @return
     */
    List<HontRoleDepartment> findByHontRoleId(String roleId);

    /**
     * 通过角色id删除
     * @param roleId
     */
    void deleteByHontRoleId(String roleId);

    /**
     * 通过角色id删除
     * @param departmentId
     */
    void deleteByHontDepartmentId(String departmentId);

}